package com.springboot.demo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author wubc683
 * @desc
 * @date 2021-12-08 17:49
 */
@Data
public class HistoryAlarm {
    @ApiModelProperty("历史报警id")
    private Long id;
    @ApiModelProperty("报警序号")
    private Integer alarmNo;
    @ApiModelProperty("变量id")
    private Long varId;
    @ApiModelProperty("变量序号")
    private Integer varNo;
    @ApiModelProperty("变量名称")
    private String varName;
    @ApiModelProperty("数据类型")
    private Integer dataType;
    @ApiModelProperty("报警类型,模拟量报警or离散量报警")
    private Integer alarmType;
    @ApiModelProperty("报警文本")
    private String alarmText;
    @ApiModelProperty("变量值")
    private String value;
    @ApiModelProperty("设备名称")
    private String deviceName;
    @ApiModelProperty("场景id")
    private Long sceneId;
    @ApiModelProperty("场景名称")
    private String sceneName;
    @ApiModelProperty("报警产生时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date productTime;
    @ApiModelProperty("历史报警所有者id")
    private Long ownerId;
}